<?php use_helper('I18N', 'Date') ?>
<?php include_partial('ct_libro/assets') ?>
<script type="text/javascript">
  window.parent.$('#site').dialog( "option", "width", 500 );
  window.parent.$('#site').dialog( "option", "height", 200 );
  window.parent.$('#site').height( 200 );
  window.parent.$('#site').width( 470 );
  window.parent.$('#site').dialog( "option", "position", 'center' );
  $(document).ready(function(){
    setTimeOut(function(){
      window.parent.$('#site').dialog('close');
      window.parent.$('#site').remove();
    }, 1000);

  });
</script>

<div id="sf_admin_container">

  <?php if ($sf_user->hasFlash('notice')): ?>
    <?php echo __($sf_user->getFlash('notice'), array(), 'sf_admin') ?>
    <div class="alert alert-success">

      <?php /* @var $CtLibro type Ctlibro */ ?>
      <h4>Nuevo libro</h4>
      <span> Documento: <?php $CtLibro->getCtDocumento() ?> </span><br>
      <span> Sucursal: <?php $CtLibro->getBbSucursal() ?> </span><br>
      <span> Estado: <?php $CtLibro->getEstadolibro() ?> </span><br>
    </div>
    <a class="btn btn-success" href="#" onclick="closeModal();">cerrar</a>
  <?php endif; ?>

  <?php if ($sf_user->hasFlash('error')): ?>
    <div class="alert alert-block alert-error"><?php echo __($sf_user->getFlash('error'), array(), 'sf_admin') ?></div>
    <a class="btn btn-error" href="#" onclick="closeModal();">cerrar</a>
  <?php endif; ?>

</div>